﻿using Bll;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Myproject.BSM.PcWeb.PcChannel.Agency
{
    public partial class selectAgencyClass : System.Web.UI.Page
    {
        private DataTable messageTable;

        public DataTable MessageTable
        {
            get { return messageTable; }
            set { messageTable = value; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string wherestr = " 1=1 ";
            string aclass = Request.Form["pc_Channel_selectAgencyClass_class"];
            if (!string.IsNullOrEmpty(aclass))
            {
                wherestr += " and AgencyClassName like '%" + aclass + "%' ";
                pc_Channel_selectAgencyClass_class.Value = aclass;
            }
            string goods = Request.Form["pc_Channel_selectAgencyClass_goods"];
            if (!string.IsNullOrEmpty(goods))
            {
                wherestr += " and GoodsName like '%" + goods + "%' ";
                pc_Channel_selectAgencyClass_goods.Value = goods;
            }
            messageTable = new AgencyClassBLL().GetList(wherestr).Tables[0];
        }
    }
}